package cn.edu.scau.cmi.linzhiyang.userInterface;

import cn.edu.scau.cmi.linzhiyang.client.*;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.stage.Stage;

public class ComprehensiveExperimentController {
	@FXML
	private Button btn_1;
	@FXML
	private Button btn_2;
	@FXML
	private Button btn_3;
	@FXML
	private Button btn_4;
	@FXML
	private Button btn_5;
	@FXML
	private Button btn_6;
	@FXML
	private Button btn_7;
	@FXML
	private Button btn_8;

	@FXML
	public void btn_1() {
		InterProgrammingClient open  = new InterProgrammingClient();
        open.start(new Stage());
        //stage.hide(); //点开新的界面后，是否关闭此界面
	}
	
	@FXML
	public void btn_2() {
		SingletonClient open  = new SingletonClient();
        open.start(new Stage());
        //stage.hide(); //点开新的界面后，是否关闭此界面
	}
	@FXML
	public void btn_3() {
		SimpleFactoryMethodClient open  = new SimpleFactoryMethodClient();
        open.start(new Stage());
        //stage.hide(); //点开新的界面后，是否关闭此界面
	}
	@FXML
	public void btn_4() {
		FactoryMethodClient open  = new FactoryMethodClient();
        open.start(new Stage());
        //stage.hide(); //点开新的界面后，是否关闭此界面
	}
	@FXML
	public void btn_5() {
		AbstractFactoryClient open  = new AbstractFactoryClient();
        open.start(new Stage());
        //stage.hide(); //点开新的界面后，是否关闭此界面
	}
	@FXML
	public void btn_6() {
		AdapterClient open  = new AdapterClient();
        open.start(new Stage());
        //stage.hide(); //点开新的界面后，是否关闭此界面
	}
	@FXML
	public void btn_7() {
		ConsistentCompositeClient open  = new ConsistentCompositeClient();
        open.start(new Stage());
        //stage.hide(); //点开新的界面后，是否关闭此界面
	}
	@FXML
	public void btn_8() {
		SafeCompositeClient open  = new SafeCompositeClient();
        open.start(new Stage());
        //stage.hide(); //点开新的界面后，是否关闭此界面
	}
}
